package com.joker.orange.domain.bo;

import com.joker.common.core.domain.BaseEntity;
import com.joker.common.core.validate.AddGroup;
import com.joker.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 小说信息业务对象 t_novel_info
 *
 * @author Joker
 * @date 2024-06-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class NovelInfoBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 分类ID
     */
    @NotNull(message = "分类ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long categoryId;

    /**
     * 小说封面
     */
    @NotBlank(message = "小说封面不能为空", groups = { AddGroup.class, EditGroup.class })
    private String novelCoverCopy;

    /**
     * 小说名称
     */
    @NotBlank(message = "小说名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String novelName;

    /**
     * 当前章节
     */
    private String currentChapter;

    /**
     * 更新到第几章节
     */
    @NotBlank(message = "更新到第几章节不能为空", groups = { AddGroup.class, EditGroup.class })
    private String updateChapter;

    /**
     * 共多少章节
     */
    @NotBlank(message = "共多少章节不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chapterTotal;

    /**
     * 小说介绍
     */
    @NotBlank(message = "小说介绍不能为空", groups = { AddGroup.class, EditGroup.class })
    private String novelIntroduce;

    /**
     * 小说标签
     */
    @NotBlank(message = "小说标签不能为空", groups = { AddGroup.class, EditGroup.class })
    private String novelLabel;

    /**
     * 小说类型（0-连载、1-完结）
     */
    @NotBlank(message = "小说类型（0-连载、1-完结）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String novelType;

    /**
     * 点赞量
     */
    @NotNull(message = "点赞量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer likeNum;

    /**
     * 收藏量
     */
    @NotNull(message = "收藏量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer collectNum;

    /**
     * 热度量
     */
    @NotNull(message = "热度量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer heatNum;

    /**
     * 评论量
     */
    @NotNull(message = "评论量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer reviewNum;

    /**
     * 是否置顶（0-是、1-否）
     */
    @NotBlank(message = "是否置顶（0-是、1-否）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isTop;

    /**
     * 备注
     */
    private String remark;


}
